﻿using System;
using System.Collections.Generic;
using System.Text;

namespace 建造者模式
{
    /// <summary>
    /// 实际组建者A，实例化建造者类
    /// </summary>
    public class ConcreteBuilderA : Builder
    {
        public readonly Computer _computer=new Computer();
        public override void BuildCpu()
        {
            _computer.Add("CPU-A");
        }

        public override void BuildMotherboard()
        {
            _computer.Add("Motherboard-A");
        }

        public override void BulidHardDisk()
        {
            _computer.Add("HardDisk-A");
        }

        public override void BulidRAM()
        {
            _computer.Add("RAM-A");
        }

        public override Computer GetBulidComputer()
        {
            return _computer;
        }
    }
}
